package com.ethink.system.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ethink.system.api.info.SystemRoleInfo;
import com.ethink.system.api.request.SystemRoleAddRequest;
import com.ethink.system.api.request.SystemRoleQueryRequest;
import com.ethink.system.api.request.SystemRoleUpdateRequest;
import com.ethink.system.api.response.SystemRoleAddResponse;
import com.ethink.system.api.response.SystemRoleDeleteResponse;
import com.ethink.system.api.response.SystemRoleDetailResponse;
import com.ethink.system.api.response.SystemRoleUpdateResponse;
import java.util.List;

/**
 * 系统角色表 Service接口
 *
 * @author default
 * @date 2022-09-27
 */
public interface SystemRoleService {

    /**
     * 分页查询
     *
     * @param request
     * @return
     */
    Page<SystemRoleInfo> querySystemRole(SystemRoleQueryRequest request);

    /**
     * 查询详情
     *
     * @param systemRoleId
     * @return
     */
    SystemRoleDetailResponse getSystemRoleById(Long systemRoleId);

    /**
     * 查询列表
     *
     * @param request
     * @return
     */
    List<SystemRoleInfo> listSystemRole(SystemRoleQueryRequest request);

    /**
     * 新增
     *
     * @param request
     * @return
     */
    SystemRoleAddResponse addSystemRole(SystemRoleAddRequest request);

    /**
     * 修改
     *
     * @param request
     * @return
     */
    SystemRoleUpdateResponse updateSystemRole(SystemRoleUpdateRequest request);

    /**
     * 删除
     *
     * @param systemRoleId
     * @return
     */
    SystemRoleDeleteResponse deleteSystemRole(Long systemRoleId);

}